package com.finance.rule.export;

import com.finance.framework.lang.BeanUtils;
import com.finance.rule.bean.pojo.MixSectionRule;
import com.finance.util.export.ExportBeanParse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author: gly
 * @Date: Created in 2017-07-27
 */
public class MixSectionParse extends ExportBeanParse<MixSectionRule,MixSectionParseBean> {
    private final Logger logger= LoggerFactory.getLogger(this.getClass());
    @Override
    protected MixSectionParseBean parse(MixSectionRule mixSectionRule) {
        MixSectionParseBean bean=new MixSectionParseBean();
        try {
            BeanUtils.copyProperties(bean,mixSectionRule);
        }catch (Exception e){
            logger.error("拷贝类失败",e);
        }
        return bean;
    }
}
